<?php
namespace Config;

class Db
{
    public static $imchat = array(
        'host' => '127.0.0.1',
        'port' => '3306',
        'user' => 'shoptkdata2017',
        'password' => '!@#123123!@#',
        'dbname' => 'shoptkdata2017',
        'charset' => 'utf8',
    );
}
// 同步 Db Config
Db::$imchat['host'] = ImChat::get('hostname', Db::$imchat['host']);
Db::$imchat['port'] = ImChat::get('hostport', Db::$imchat['port']);
Db::$imchat['user'] = ImChat::get('username', Db::$imchat['user']);
Db::$imchat['password']=ImChat::get('password', Db::$imchat['password']);
Db::$imchat['dbname']= ImChat::get('database', Db::$imchat['dbname']);
Db::$imchat['charset']=ImChat::get('charset', Db::$imchat['charset']);
